package com.tiancheng.trade.order.feign;

import com.tiancheng.trade.commom.core.data.Result;
import com.tiancheng.trade.order.feign.dto.UserInvoiceTitleInfoDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 用户中心
 *
 * @author kellen
 * @date 2024/7/1
 */
@Component
@FeignClient(name = "user-center")
public interface UserCenterService {

    /**
     * 保存用户的发票抬头
     * @param userInvoiceTitleInfoDTO
     * @return
     */
    @PostMapping(value = "/invoiceTitle/api/save", consumes = MediaType.APPLICATION_JSON_VALUE)
    Result saveInvoiceTitleInfo(@RequestBody UserInvoiceTitleInfoDTO userInvoiceTitleInfoDTO);
}
